package com.engine4cloud.tdf.supervision.dto.update;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 法律文书-请求对象
 *
 * @author wenjie
 * @date 2024-04-01 14:23:35
 */
@Data
@Schema(description = "法律文书-请求对象")
public class JzdxLegalInstrumentUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 法律文书
     */
    @Schema(description = "法律文书", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    @NotEmpty(message = "法律文书不能为空")
    private List<JzdxFileDTO> legalInstrumentList;

    /**
     * 文书类型
     */
    @Schema(description = "文书类型", example = "01")
    @NotNull(message = "文书类型不能为空")
    private String lx;

    /**
     * 签发机构
     */
    @Schema(description = "签发机构")
    private String qfjg;

    /**
     * 签发时间
     */
    @Schema(description = "签发时间", example = "YYYY-MM-DD HH:mm：ss")
    private LocalDateTime qfsj;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

}